package com.qdd.freight.interceptor;//package com.qdd.freight.interceptor;
//import com.gateway.util.JwtUtil;
//import com.qdd.freight.config.HandlerContext;
//import com.qdd.freight.handler.AbstractHandler;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.cloud.gateway.filter.GatewayFilterChain;
//import org.springframework.cloud.gateway.filter.GlobalFilter;
//import org.springframework.core.Ordered;
//import org.springframework.http.HttpStatus;
//import org.springframework.http.server.reactive.ServerHttpRequest;
//import org.springframework.http.server.reactive.ServerHttpResponse;
//import org.springframework.stereotype.Component;
//import org.springframework.transaction.annotation.Transactional;
//import org.springframework.util.StringUtils;
//import org.springframework.web.server.ServerWebExchange;
//import reactor.core.publisher.Mono;
///**
// * 拦截请求，判断是否存在对应的处理器对象，没有则直接返回页面报错。
// * @ClassName UrlInterceptor
// * @Description TODO
// * @Author yanpeihao
// * @Date 2019/12/13 8:32
// * @Versio 1.0
// **/
//
//@Component
//public class ModeIdFilter implements GlobalFilter , Ordered {
//
//    @Autowired
//    private HandlerContext handlerContext;
//
//    @Override
//    public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
//
//            return response.setComplete();
//
//
//        return chain.filter(exchange);
//    }
//
//    @Override
//    public int getOrder() {
//        return 2;
//    }
//}
